package io.modifier.basic.emo.photo.coil

import io.modifier.basic.emo.photo.data.MediaModel
import io.modifier.basic.emo.photo.data.MediaPhotoProviderFactory
import io.modifier.basic.emo.photo.data.PhotoProvider

class CoilMediaPhotoProviderFactory : MediaPhotoProviderFactory {

    override fun factory(model: MediaModel): PhotoProvider {
        return CoilPhotoProvider(uri = model.uri, ratio = model.ratio())
    }
}
